<?php

/**
 * LoginForm class.
 * LoginForm is the data structure for keeping
 * user login form data. It is used by the 'login' action of 'SiteController'.
 */
class PictureUploadForm extends CFormModel
{
	public $file;
	public $type;

	/**
	 * Declares the validation rules.
	 * The rules state that username and password are required,
	 * and password needs to be authenticated.
	 */
	public function rules()
	{
		return array(
			array('file', 'file','types'=>'gif,jpg,png','maxSize'=>'8000000'),
			
		);
	}

	/**
	 * Declares attribute labels.
	 */
	public function attributeLabels()
	{
		return array(
			'email'=>'您的邮箱',
		);
	}

	
	public function model ($className = __CLASS__)
    {
        return User::model();
    }
}
